package com.apartment.data.view;

import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * Author : xuzhiyong
 * Date : 2022/6/3 21:51
 */
@Entity
@Table(name = "indentview")
public class Indentview {
    /**
     * 订单编号
     */
    @Id
    private Integer id;

    /**
     * 用户id
     */
    private Integer user_id;

    /**
     * 房东id
     */
    private Integer landlord_id;

    /**
     * 房屋id
     */
    private Integer apartment_id;
    /**
     * 租房人
     */
    private String username;

    /**
     * 房东
     */
    private String landlord_username;

    /**
     *订单开始时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date begintime;

    /**
     * 订单结束时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date endtime;

    /**
     * 房屋地址
     */
    private String address;

    /**
     * 房屋描述
     */
    private String content;

    /**
     * 房屋图片
     */
    private String picture;

    /**
     * 房屋价格
     */
    private String price;

    /**
     * 支付状态
     */
    private String pay_status;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUser_id() {
        return user_id;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    public Integer getLandlord_id() {
        return landlord_id;
    }

    public void setLandlord_id(Integer landlord_id) {
        this.landlord_id = landlord_id;
    }

    public Integer getApartment_id() {
        return apartment_id;
    }

    public void setApartment_id(Integer apartment_id) {
        this.apartment_id = apartment_id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getLandlord_username() {
        return landlord_username;
    }

    public void setLandlord_username(String landlord_username) {
        this.landlord_username = landlord_username;
    }

    public Date getBegintime() {
        return begintime;
    }

    public void setBegintime(Date begintime) {
        this.begintime = begintime;
    }

    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getPay_status() {
        return pay_status;
    }

    public void setPay_status(String pay_status) {
        this.pay_status = pay_status;
    }

    @Override
    public String toString() {
        return "Indentview{" +
                "id=" + id +
                ", user_id=" + user_id +
                ", landlord_id=" + landlord_id +
                ", apartment_id=" + apartment_id +
                ", username='" + username + '\'' +
                ", landlord_username='" + landlord_username + '\'' +
                ", begintime=" + begintime +
                ", endtime=" + endtime +
                ", address='" + address + '\'' +
                ", content='" + content + '\'' +
                ", picture='" + picture + '\'' +
                ", price='" + price + '\'' +
                ", pay_status='" + pay_status + '\'' +
                '}';
    }
}
